angular.module('faApp')
  .service('infoManageService', [ 'ajaxService',function (ajaxService) {

    this.fbList = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_FEED_BACK"),cfg || {});
    };

    this.bcList = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_BANK_CARD"),cfg || {});
    };

    this.withdrawList = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_WITHDRAW"),cfg || {});
    };
    this.askForList = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_ASKFIR_LIST"),cfg || {});
    }; 
    this.askForDetail = function (id) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_ASKFIR_DETAIL"),{id : id});
    };
    this.askForFail = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_ASKFIR_FAIL"),cfg || {});
    };
    this.askForSuccess = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_ASKFIR_SUCCESS"),cfg || {});
    };

    this.withdrawDetail = function (id) {
      return ajaxService.jsonp(ajaxService.getApiUri("INFO_MANAGE_WITHDRAW_DETAIL"),{id:id});
    };
  
    this.withdrawUpdate = function (withdraw) {
      return ajaxService.post(ajaxService.getApiUri("INFO_MANAGE_WITHDRAW_UPDATE"),withdraw || {});
    };
    this.payRunningList = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("INFO_MANAGE_PARRINNING_LIST"),cfg || {});
    };
}]);